package org.dormnet.dao.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Date;

import org.dormnet.dao.bean.Picture;
public class PictureMapping implements BeanMapping{
	public Object mapping(ResultSet resultSet) throws SQLException {
		Picture picture = new Picture();
		picture.setAlid(resultSet.getInt("alid"));
		picture.setDescription(resultSet.getString("description"));
		picture.setIsdeleted(resultSet.getInt("Isdeleted"));
		picture.setPicname(resultSet.getString("picname"));
		picture.setPid(resultSet.getInt("Pid"));
		picture.setPicttime(resultSet.getDate("picttime"));
		return picture;
	}

}
